import { ElMessageBox, ElMessage } from 'element-plus'
  
  //确认窗口
export const confirmMessage = msg => {
    return ElMessageBox.confirm(
        msg,
        '提示',
        {
            confirmButtonText: '确定',
            cancelButtonText: '取消',
            type: 'warning'
        }
    )
}

//消息提示
export const showMessage = (msg,type) => {
    ElMessage({
        showClose: true,//是否有关闭按钮
        message: msg,
        type: type,
        duration: 5000//持续时间
    })
}